import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Link} from 'react-router-dom';
import { Carousel, ActivityIndicator } from 'antd-mobile';
import {getQueryString} from '../utils/util';
import { get } from '../api/getData';
import 'antd-mobile/lib/carousel/style/index.css';
import 'antd-mobile/lib/activity-indicator/style/index.css';
import '../static/styles/detail.css';

class Hj extends Component {
    constructor(props) {
        super(props);
        this.state = {
            content:''
        }
    }

    componentDidMount() {
        document.title = '活动合集';
        let __this = this;
        get('/api/activity/hj', {} , function(error, data){
            if(null === error){
                if(data.code === 0){
                    console.log(data);
                    __this.setState({
                        ...data.data
                    });
                }
            }
        });
    }

    render() {
        return (<div style={{padding:'20px'}}>
            <div dangerouslySetInnerHTML={{__html: this.state.content}}></div>
        </div>);
    }
}

export default Hj;
